export interface OrderActionParams {
  delivery_type: 1
  order_type: 0
  source: 'buy_now' | 'cart'
}

export interface CreateOrderParams extends OrderActionParams {
  action: 'settle' // buy:提交订单 settle:结算
  goods?: Array<{ goods_num: number; item_id: number }>
  cart_id?: Array<number>
  coupon_list_id?: string
}

export interface SubmitOrderParams extends OrderActionParams {
  action: 'buy' // buy:提交订单 settle:结算
  address: string
  coupon_list_id?: string
}

export interface BuyTypeParams {
  from: string
  order_id?: number | string
  scene: number
}

export interface PayParams {
  from: 'order'
  order_id: number
  order_source: 3
  pay_way: 1 | 2
}
